using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameManager : MonoBehaviour
{
    public static GameManager Instance { get; private set;}

    void Awake()
    {
        Instance = this;
    }

    public void Restart()
    {
        SceneManager.LoadScene(0);
    }

    public void DelayRestart(float seconds)
    {
        Invoke(nameof(Restart), seconds);
    }
}
